[#ftl]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加参数</title>
<link rel="stylesheet" type="text/css" href="${base}/css/date.css" />
<link rel="stylesheet" type="text/css" href="${base}/css/base.css" />
<link rel="stylesheet" type="text/css" href="${base}/css/form.css" />
<link rel="stylesheet" type="text/css" href="${base}/css/pop.css" />
<link rel="stylesheet" type="text/css" href="${base}/commonjs/artDialog6/ui-dialog.css" />


<script type="text/javascript" src="${base}/commonjs/jquery1.7.2/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${base}/commonjs/jquery-forms.js"></script>
<script type="text/javascript" src="${base}/commonjs/artDialog6/dialog-plus-min.js"></script>
<script type="text/javascript" src="${base}/commonjs/message/message.js"></script>
<script type="text/javascript" src="${base}/commonjs/noty/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="${base}/commonjs/jquery-validation/jquery.validate.min.js" ></script>
<script type="text/javascript" src="${base}/commonjs/jquery-validation/localization/messages_zh.js" ></script>


<script type="text/javascript"> 
    $(function() {
        $("#butSave").click(function(){ 
             $("#dataform").submit();           
         });

        var v = jQuery("#dataform").validate({
         submitHandler: function(form) {
            $(form).ajaxSubmit({
                url:"${base}/system/sysConfig/add",
                success: function(data){  
                        noty({
                          text:extendMessages(data).msg.message,
                          layout:"center",
                          timeout:2000,
                          callback:{
                             afterClose:function(){
                                          window.parent.location.reload(); 
                                        }
                           }
                        });
               }
            });
        }
 });
        $("#butCancel").click(function(){
            window.parent.closeArtDialog();
        });
        
    });
    
</script>
</head>
<body>
<!-- 主体开始 -->
<div class="dataForm">
		<div id="eva_tab1" class="eva_tab">
			<form id="dataform" action="add" method="post">
				<div class="content mt10">
					<dl>
					<dt><span   class="required">*</span>名称</dt>
					<dd>			
					<input  class="required " name="name" id="name"  type="text" />
					</dd>
					
					<dt><span   class="required">*</span>代码</dt>
					<dd>			
					<input  class="required " name="code" id="code"  type="text"  />
					</dd>
					
					<dt><span   class="required">*</span>值</dt>
					<dd>			
					<input  class="required "  name="value" id="value"  type="text"  />
					</dd>
					<dt>数据类型</dt>
					<dd>			
					[@c.select id="datatype"  attributes='class="clear"' datas="common.datatype" /]
					</dd>
		
					<dt  class="cl">类别</dt>
					<dd>
						<select id="tag" name="tag">
						<option value=0>不限制</option>
						<option value=1>不能删除</option>
						<option value=2>不能修改</option>
						<option value=3>系统默认</option>
						</select>
					</dd>
					<dt class="cl">次序</dt>
					<dd><input  name="showOrder" id="showOrder"  type="text"  />
					</dd>
					<dt>备注</dt>
					<dd>
						<textarea rows="5" cols="38" id="description" name="description" ></textarea>
					</dd>
					<dl>
		
					<div class="clear"></div>
				</div>
				<div class="pop_btn">
					<input type="button" id="butSave" class="btn_1" value="保存"/>
					<input type="button" id="butCancel" class="btn_1" value="取消"/>
			    </div>
			</form>						
		</div>				
</div>

</body>
</html>